
from south.db import db
from django.db import models
from core.models import *

class Migration:
    
    def forwards(self, orm):
        
        # Adding model 'Place'
        db.create_table('core_place', (
            ('id', orm['core.Place:id']),
            ('title', orm['core.Place:title']),
            ('slug', orm['core.Place:slug']),
            ('description', orm['core.Place:description']),
            ('coordinates', orm['core.Place:coordinates']),
        ))
        db.send_create_signal('core', ['Place'])
        
        # Adding model 'ProjectUpdate'
        db.create_table('core_projectupdate', (
            ('id', orm['core.ProjectUpdate:id']),
            ('title', orm['core.ProjectUpdate:title']),
            ('slug', orm['core.ProjectUpdate:slug']),
            ('description', orm['core.ProjectUpdate:description']),
            ('date_time', orm['core.ProjectUpdate:date_time']),
            ('project', orm['core.ProjectUpdate:project']),
            ('current_status', orm['core.ProjectUpdate:current_status']),
        ))
        db.send_create_signal('core', ['ProjectUpdate'])
        
        # Adding model 'Project'
        db.create_table('core_project', (
            ('id', orm['core.Project:id']),
            ('title', orm['core.Project:title']),
            ('slug', orm['core.Project:slug']),
            ('description', orm['core.Project:description']),
            ('web_link', orm['core.Project:web_link']),
        ))
        db.send_create_signal('core', ['Project'])
        
        # Adding model 'Argument'
        db.create_table('core_argument', (
            ('id', orm['core.Argument:id']),
            ('title', orm['core.Argument:title']),
            ('slug', orm['core.Argument:slug']),
            ('description', orm['core.Argument:description']),
            ('date_time', orm['core.Argument:date_time']),
            ('my_answer', orm['core.Argument:my_answer']),
            ('opposing_answer', orm['core.Argument:opposing_answer']),
            ('correct', orm['core.Argument:correct']),
        ))
        db.send_create_signal('core', ['Argument'])
        
        # Adding model 'Event'
        db.create_table('core_event', (
            ('id', orm['core.Event:id']),
            ('title', orm['core.Event:title']),
            ('slug', orm['core.Event:slug']),
            ('description', orm['core.Event:description']),
            ('date_time', orm['core.Event:date_time']),
            ('date_time_to', orm['core.Event:date_time_to']),
            ('place', orm['core.Event:place']),
        ))
        db.send_create_signal('core', ['Event'])
        
    
    
    def backwards(self, orm):
        
        # Deleting model 'Place'
        db.delete_table('core_place')
        
        # Deleting model 'ProjectUpdate'
        db.delete_table('core_projectupdate')
        
        # Deleting model 'Project'
        db.delete_table('core_project')
        
        # Deleting model 'Argument'
        db.delete_table('core_argument')
        
        # Deleting model 'Event'
        db.delete_table('core_event')
        
    
    
    models = {
        'core.argument': {
            'correct': ('django.db.models.fields.NullBooleanField', [], {'null': 'True'}),
            'date_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'my_answer': ('django.db.models.fields.TextField', [], {}),
            'opposing_answer': ('django.db.models.fields.TextField', [], {}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.event': {
            'date_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'date_time_to': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Place']"}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.place': {
            'coordinates': ('django.contrib.gis.db.models.fields.PointField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.project': {
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'}),
            'web_link': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
        },
        'core.projectupdate': {
            'current_status': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'date_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Project']"}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        }
    }
    
    complete_apps = ['core']
